package com.sunda.spmsoversea.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 海外仓转储任务表
 * </p>
 *
 * @author Wayne
 * @since 2021-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OVERSEA_WHS_DUMP")
@ApiModel(value="OverseaWhsDump对象", description="海外仓转储任务表")
public class OverseaWhsDump implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "转储任务UUID")
    @TableId("WHS_DUMP_UUID")
    private String whsDumpUuid;

    @ApiModelProperty(value = "转储任务单号")
    @TableField("WHS_DUMP_NO")
    private String whsDumpNo;

    @ApiModelProperty(value = "转入工厂代码")
    @TableField("WERKS_DUMP_IN")
    private String werksDumpIn;

    @ApiModelProperty(value = "转入仓库代码")
    @TableField("WHS_LOCATION_CODE_DUMP_IN")
    private String whsLocationCodeDumpIn;

    @ApiModelProperty(value = "转出工厂代码")
    @TableField("WERKS_DUMP_OUT")
    private String werksDumpOut;

    @ApiModelProperty(value = "转出仓库代码")
    @TableField("WHS_LOCATION_CODE_DUMP_OUT")
    private String whsLocationCodeDumpOut;

    @ApiModelProperty(value = "创建日期")
    @TableField("CREATE_DATE")
    private String createDate;

    @ApiModelProperty(value = "海外SPMS转储单据状态:0删除；1草稿；2待审批；3SPMS审批通过(提交OA);4OA驳回(操作同1);5OA审批通过(出库中);6出库完成;7提交SAP获取PO失败;8提交SAP获取PO;9提交SAP获取DN失败;10提交SAP获取DN成功(扣转出方库存);11转出已撤销(撤到状态5出库中，SAP撤回成功则加回库存);")
    @TableField("SPMS_STATUS")
    private String spmsStatus;

    @ApiModelProperty(value = "OA流程编号")
    @TableField("OA_WORKFLOW")
    private String oaWorkflow;

    @ApiModelProperty(value = "OA单据编号")
    @TableField("OA_BIANHAO")
    private String oaBianhao;

    @ApiModelProperty(value = "提交OA审批备注")
    @TableField("OA_REMARK")
    private String oaRemark;

    @ApiModelProperty(value = "提交OA日期")
    @TableField("SUBMIT_OA_DATE")
    private String submitOaDate;

    @ApiModelProperty(value = "OA审批通过日期")
    @TableField("OA_APPROVAL_DATE")
    private String oaApprovalDate;

    @ApiModelProperty(value = "OA预留字段")
    @TableField("OA_FIELD")
    private String oaField;

    @ApiModelProperty(value = "转出备注信息")
    @TableField("DUMP_OUT_REMARK")
    private String dumpOutRemark;

    @ApiModelProperty(value = "转出完成日期")
    @TableField("DUMP_OUT_DATE")
    private String dumpOutDate;

    @ApiModelProperty(value = "SAP采购凭证号")
    @TableField("SAP_PURCHASE_NO")
    private String sapPurchaseNo;

    @ApiModelProperty(value = "获取采购凭证号过账日期")
    @TableField("PURCHASE_POSTING_DATE")
    private String purchasePostingDate;

    @ApiModelProperty(value = "采购凭证年份")
    @TableField("PURCHASE_VOUCHER_YEAR")
    private String purchaseVoucherYear;

    @ApiModelProperty(value = "SAP交货单号")
    @TableField("SAP_DELIVERY_NOTE")
    private String sapDeliveryNote;

    @ApiModelProperty(value = "获取交货单号采购凭证过账日期")
    @TableField("POSTING_DATE")
    private String postingDate;

    @ApiModelProperty(value = "交货单凭证年份")
    @TableField("SAP_VOUCHER_YEAR")
    private String sapVoucherYear;

    @ApiModelProperty(value = "撤销SAP凭证号")
    @TableField("CANCEL_VOUCHER_NUMBER")
    private String cancelVoucherNumber;

    @ApiModelProperty(value = "撤销SAP过账日期")
    @TableField("CANCEL_POSTING_DATE")
    private String cancelPostingDate;

    @ApiModelProperty(value = "撤销SAP凭证年份")
    @TableField("CANCEL_VOUCHER_YEAR")
    private String cancelVoucherYear;

    @ApiModelProperty(value = "业务标识")
    @TableField("BUSINESS_TYPE")
    private String businessType;

    @ApiModelProperty(value = "凭证类型/订单类型(采购)公司内ZU01/公司间ZC01")
    @TableField("VOUCHER_TYPE")
    private String voucherType;

    @ApiModelProperty(value = "采购组-240")
    @TableField("PURCHASE_GROUP")
    private String purchaseGroup;

    @ApiModelProperty(value = "采购组织-1000")
    @TableField("PURCHASE_ORG")
    private String purchaseOrg;

    @ApiModelProperty(value = "退货标识")
    @TableField("RETURN_MARK")
    private String returnMark;

    @ApiModelProperty(value = "项目交货日期/需求到货日期")
    @TableField("DELIVERY_DATE")
    private String deliveryDate;

    @ApiModelProperty(value = "交货类型")
    @TableField("DELIVERY_TYPE")
    private String deliveryType;

    @ApiModelProperty(value = "移动类型")
    @TableField("MOVEMENT_TYPE")
    private String movementType;

    @ApiModelProperty(value = "成本中心")
    @TableField("COST_CENTER")
    private String costCenter;

    @ApiModelProperty(value = "预留字段")
    @TableField("COMMENTS")
    private String comments;

    @ApiModelProperty(value = "创建人工号")
    @TableField("CREATE_USERID")
    private String createUserid;

    @ApiModelProperty(value = "数据版本号")
    @TableField("DATA_VERSION")
    private Integer dataVersion;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;


}
